package WebTopN6;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

public class WebGroupComparator extends WritableComparator {
    protected WebGroupComparator(){
        super(WebBean.class,true);
    }

    @Override
    public int compare(WritableComparable a, WritableComparable b) {
        WebBean aBean = (WebBean) a;
        WebBean bBean = (WebBean) b;
        return aBean.getYear().compareTo(bBean.getYear());
    }
}
